Package [root]

Functions

Link copied to clipboard
fun addArtist()

Adds a new artist to the ArtistAPI using user input for properties.

Link copied to clipboard
fun addSong()

Adds a new song to the SongAPI using user input for properties.

Link copied to clipboard
fun artistMenu(): Int?

Displays the artist menu of the application and reads user input for the selected option.

Link copied to clipboard
fun deleteArtist()

Deletes an artist based on their index.

Link copied to clipboard
fun deleteSong()

Deletes a song based on its index.

Link copied to clipboard
fun exitApp()

Exits the application.

Link copied to clipboard
fun explicitifySong()

Toggles the explicitify status of a song based on its index.

Link copied to clipboard
fun generateArtist(old: Artist? = null): Artist
Link copied to clipboard
fun generateSong(old: Song? = null): Song

Generates a new song instance using user input for song properties.

Link copied to clipboard
fun getFilteredArtists(artistList: MutableList<Artist>): MutableList<Artist>?
Link copied to clipboard
fun getFilteredSongs(songList: MutableList<Song>): MutableList<Song>?

Filters a MutableList of Song instances based on user input.

Link copied to clipboard
fun getSortedArtists(artistList: MutableList<Artist> = artistAPI.findAll()): MutableList<Artist>
Link copied to clipboard
fun getSortedSongs(songList: MutableList<Song> = songAPI.findAll()): MutableList<Song>

Sorts a MutableList of Song instances based on user input.

Link copied to clipboard
fun listImportantSongs()

Lists songs with a rating of 1.

Link copied to clipboard
fun listSongs()

Lists songs based on user-selected criteria.

Link copied to clipboard
fun listSongsByRating()

Lists songs based on a specified rating.

Link copied to clipboard
fun listStaleSongs()

Lists songs based on a specified number of days.

Link copied to clipboard
fun loadArtists(show: Boolean = true)

Loads artists from an external file.

Link copied to clipboard
fun loadSongs(show: Boolean = true)

Loads songs from an external file.

Link copied to clipboard
fun main()

Start the Songs App.

Link copied to clipboard
fun mainMenu(): Int?

Displays the main menu of the application and reads user input for the selected option.

Link copied to clipboard
fun printAllArtists(): <ERROR CLASS>

Prints all artists in a tabular format with rounded borders.

Link copied to clipboard
fun printAllSongs(): <ERROR CLASS>

Prints all songs in a tabular format with rounded borders.

Link copied to clipboard
fun removeMultipleSongs()

Removes multiple songs based on their index.

Link copied to clipboard
fun runArtistMenu()

Show artist menu and handle user choices.

Link copied to clipboard
fun runMenu()

Show menu and handle user choices.

Link copied to clipboard
fun runSongMenu()

Show song menu and handle user choices.

Link copied to clipboard
fun saveArtists()

Saves artists to an external file.

Link copied to clipboard
fun saveSongs()

Saves songs to an external file.

Link copied to clipboard
fun searchArtists()
Link copied to clipboard
fun searchSongs()

Searches for songs based on index, filters, and sorts them based on user input.

Link copied to clipboard
fun songMenu(): Int?

Displays the song menu of the application and reads user input for the selected option.

Link copied to clipboard
fun updateArtist()

Updates an existing artist with new properties based on user input.

Link copied to clipboard
fun updateSong()

Updates an existing song with new properties based on user input.

Link copied to clipboard
fun viewArtist()

Displays a selected artist based on their index.

Link copied to clipboard
fun viewSong()

Displays a selected song based on its index.